home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / msswitch / msswitch.doc
Text File  |  1987-06-30  |  5KB  |  127 lines

  1. Article 1306 of comp.sys.ibm.pc:
  2. Path: irs1!umd5!mimsy!oddjob!uwvax!husc6!seismo!mcvax!cernvax!ethz!srp
  3. From: srp@ethz.UUCP (Scott Presnell)
  4. Newsgroups: comp.sys.ibm.pc
  5. Subject: Undocumented Switches in 'cl.exe' for MS-C Ver 4.00
  6. Message-ID: <117@bernina.UUCP>
  7. Date: 26 Jun 87 10:36:35 GMT
  8. Organization: Chem. Dept., Swiss Federal Inst. of Tech. (ETH-Zurich)
  9. Lines: 114
  10. Keywords: cl, MSC, amusement
  11.  
  12. For your amusement, here is a listing of options avaible in cl.exe for MSC
  13. 4.00, the documented options were added for completeness. The undocumented
  14. options were 'discovered' using the Norton Utilities, and thier functions
  15. determined "on a rainy day". Hope someone will find them useful. Please
  16. feel free to correct me or fill in the blanks.
  17.  
  18. Go wild son ...
  19.  
  20. --------
  21.  
  22. Listing of options in 'cl' of MS-C Ver. 4.00,  documented and undocumented.
  23.  
  24.         Switch          Documented              Function
  25.         -c              yes
  26.         -d              no                      Display passes as they happen.
  27.         -dos            Xenix
  28.         -i              no
  29.         -imp            no
  30.         -n              no
  31.         -s              no
  32.         -k              no                      Keep temp files (quiet).
  33.         -link           yes
  34.         -l*             no                      False friend, see below.
  35.         -m#             no                      Make .map file.
  36.         -nl#            no
  37.         -nologo         no                      Don't print logo on startup.
  38.         -pack           yes
  39.         -pathgen        no
  40.         -o#             no                      Name the output (exe) file.
  41.         -p              no                      Gives warning about no -Gp.
  42.         -pa#            no
  43.         -pl#            no                      Supply alternate linker.
  44.         -p0#            no                      Supply alternate pass 0 cmd.
  45.         -p1#            no                      Supply alternate pass 1 cmd.
  46.         -p2#            no                      Supply alternate pass 2 cmd.
  47.         -p3#            no                      Supply alternate pass 3 cmd.
  48.         -pL#            no
  49.         -u              yes
  50.         -v#             no
  51.         -w              yes
  52.         -z              no                      Print passes (donot compile).
  53.  
  54.         -A*             yes
  55.         -Ba#            no
  56.         -Bd             no                      Print passes as they happen.
  57.         -Bk             no                      Keep temp files (verbose).
  58.         -Bl#            no                      Supply alternate linker.
  59.         -Bz             no                      Print passes (donot compile).
  60.         -B0#            no                      Supply alternate pass 0 cmd.
  61.         -B1#            no                      Supply alternate pass 1 cmd.
  62.         -B2#            no                      Supply alternate pass 2 cmd.
  63.         -B3#            no                      Supply alternate pass 3 cmd.
  64.         -BL#            no
  65.         -C              yes
  66.         -CSOFF          no
  67.         -D#             yes
  68.         -E              yes
  69.         -EP             yes
  70.         -FP*            yes
  71.         -Fa(*)          yes
  72.         -Fe*            yes
  73.         -Fc(*)          yes
  74.         -Fl(*)          yes
  75.         -Fs(*)          yes
  76.         -Fo*            yes
  77.         -Fm(*)          yes
  78.         -Gt(*)          yes
  79.         -G*             yes
  80.         -HELP           yes
  81.         -H#             yes
  82.         -I#             yes
  83.         -K              no                      Keep temp files (see -k).
  84.         -J              yes
  85.         -L              no                      Make .cod file only.
  86.         -M#             Xenix                   See pg 298 MS-C Users Guide.
  87.         -ND#            yes
  88.         -NM#            yes
  89.         -NT#            yes
  90.         -O(*)           yes
  91.         -P              yes
  92.         -PLM            no                      _main & exit unresolved.
  93.         -PLMF           no                      no default lib search.
  94.         -PLMN           no                      -PLMF + something else?
  95.         -S              no                      Make .asm file only.
  96.         -U#             yes
  97.         -V#             yes
  98.         -W#             yes
  99.         -X              yes
  100.         -Z*             yes
  101.  
  102. *, # -- symbols used in the cl.exe string formats. Usually indicates
  103. something further needs to be specified.
  104.  
  105. Favorite Undocumented Option: -nologo (makes my error.log files much
  106. smaller).
  107.  
  108. NB: -l does not act like -l in 'ld' on UNIX systems. 'Cl' just seems
  109. to chop off the -l and treat the rest like an object file to be linked.
  110.  
  111. Note undocumented 'cc/ld' compatible options, -o, -S, -B?, -O.
  112.  
  113. I would suspect that -Ba#, -pa# would allow an alternate assembler,
  114. but 'cl' doesn't seem to be able to call 'masm'.
  115.  
  116. Any one got any good ideas about what -pathgen might do?
  117.  
  118. Regards,
  119.  
  120. -------
  121. Scott Presnell                                          Organic Chemistry
  122. Swiss Federal Institute of Technology  (ETH-Zentrum)
  123. CH-8092 Zurich, Switzerland.
  124. uucp:seismo!mcvax!cernvax!ethz!srp (srp@ethz.uucp); bitnet:Benner@CZHETH5A
  125. "... I dunno, maybe it was Ewe-tah ..."
  126.  
  127.